import {
  g3x_defineClassProperties,
} from "@g3x/utils";

export default function(Ctor) {
  g3x_defineClassProperties(Ctor, [{
    key: 'flyTo',
    value: function flyTo() {
      var camera = this._earth.czm.scene.camera;
      camera.flyToBoundingSphere(this._boundingSphere);
    }
  }, {
    key: 'destroy',
    value: function destroy() {
      return (0, _get3.default)(Water.prototype.__proto__ || (0, _getPrototypeOf2.default)(Water
        .prototype), 'destroy', this).call(this);
    }
  }, {
    key: 'boundingSphere',
    get: function get() {
      return this._boundingSphere;
    }
  }]);
}
